<include file="Public/head" />
<link type="text/css" rel="stylesheet" href="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.css" />
<script src="{:get_style_cdnurl()}paimai/yunying/plugin/select2/select2.js" type="text/javascript"></script>
<style type="text/css">
    .employee .employee_left,.employee_right{width: 50%;float:left;}
    .select2-container .select2-choice > .select2-chosen{text-align: center;}
</style>
</head>
<body>
<include file="Public/common_header" />
<div class="mian">
    <include file="Public/sidebar" menu='xtgl.gysgl' />
    <div class="mianR">
        <h3 class='cha'>片区管理-查看片区</h3>
       <div class="car_info">
            <table border="1" width="100%" style="margin-top:10px;">
                <tbody>
                    <tr>
                        <td colspan="4" style="background-color:#c1c1c1;font-size:14px;"><span>车主信息</span></td>
                    </tr>
                    <tr>
                        <td width="11%" style="color:#898b8a;">片区名称</td>
                        <td width="39%">{$regionInfo.region_name}</td>
                        <td width="11%" style="color:#898b8a;">所属城市</td>
                        <td width="39%">{$bc_city[$regionInfo['city']]}</td>
                    </tr>
                    <tr>
                        <td width="11%" style="color:#898b8a;">片区负责人</td>
                        <td width="39%">{$regionInfo.real_name}</td>
                        <td width="11%" style="color:#898b8a;">负责人电话</td>
                        <td width="39%">{$regionInfo.mobile}</td>
                    </tr>
                    <tr>
                        <td width="11%" style="color:#898b8a;">摘要</td>
                        <td colspan="3">{$regionInfo.remark}</td>
                    </tr>
                </tbody>
            </table>
           </div> 
        <div class="associated-store">
            <h4>片区店铺</h4>
            <ul class="area-shop">
            <?php foreach ($regionInfo['fourStoreInfos'] as $k1 => $v1): ?>
                <li>{$v1.f_name}</li>
            <?php endforeach ?>
            </ul>
        </div>
        <div class="associated-store">
            <h4>片区评估师</h4>
            <ul class="area-shop">
            <?php foreach ($regionInfo['appraisers'] as $k11 => $v11): ?>
                <li><span>{$v11.real_name}<i>({$v11.count})</i></span>
                    <ul>
                        <?php foreach ($v11['fourStore'] as $k22 => $v22): ?>
                            <li><i>{$regionInfo.region_name}</i>{$v22.f_name}</li>
                        <?php endforeach ?>
                    </ul>
                </li>
            <?php endforeach ?>
            </ul>
        </div>
        <div class="associated-store">
            <h4>片区维护人</h4>
            <ul class="area-shop">
                <?php foreach ($regionInfo['maintains'] as $k2 => $v2): ?>
                <li><span>{$v2.real_name}<i>({$v2.count})</i></span>
                    <ul>
                        <?php foreach ($v2['fourStore'] as $k3 => $v3): ?>
                            <li><i>{$regionInfo.region_name}</i>{$v3.f_name}</li>
                        <?php endforeach ?>
                    </ul>
                </li>
                <?php endforeach ?>
                
                    
            </ul>
        </div>
        <div class="yongBtn clearfix">
            <input type="submit" value="返回" class="queding" onclick="location.href = '/SupplierManage/index/status/4'">
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $(".area-shop").each(function(){
            $(this).find("li span").click(function(){
                if($(this).next("ul").css("display")=="none"){
                    $(this).next("ul").show();
                    $(this).addClass("current");
                }else{
                    $(this).next("ul").hide();
                    $(this).removeClass("current");
                }               
            })
        })
    })
</script>

<include file="Public/foot" />